<template>
  <div class="baseCommon card">
    <div class="title">分类</div>
    <ul>
      <li v-for="item in series_list" :key="item.id">
        <router-link :to="/series/+item.id">{{item.series_name}}</router-link>
      </li>
    </ul>
  </div>
</template>
<script type="text/ecmascript-6">
export default {
  data() {
    return {
      series_list: "",
      series_url: "/Essay/series_list/30"
    };
  },
  mounted() {
    this.$http.get(this.domain + this.series_url).then(
      res => {
        this.series_list = res.data;
      },
      res => {
        this.$router.push({ path: "/error" });
      }
    );
  }
};
</script>
